package cn.edu.scujcc.staffdiary.ui.clock;

import java.util.ArrayList;
import java.util.List;

public class ClockLab {
    private static ClockLab INSTANCE = null;
    private List<Clock> data = new ArrayList<>();
    public void setData(List<Clock> d) {
        this.data = d;
    }
    public static ClockLab get() {
        if (INSTANCE == null) {
            INSTANCE = new ClockLab();
        }
        return INSTANCE;
    }

    public int getClockCount() {
        return this.data.size();
    }

    public Clock getClock(int n) {
        return this.data.get(n);
    }
}